#pragma once

#include "log.h"

int logInit(const string fileName, int level = LL_DEBUG);
void logMsg(LOG_LEVEL level, const char *format, ...);


#define REALLOG( level, str_level, format, args...) \
	logMsg(level, " " format, ##args)
	//log->Log(level, 0, format, ##args)
	//


//logMsg(level, "[%s] %s,%s,%d|" format "\n", __FILE__, __FUNCTION__, __LINE__, ##args)

#define ERROR_LOG(format, args...) REALLOG(LL_ERROR, "ERROR", format, ##args)
#define FLOW_LOG(format, args...) REALLOG(LL_WARN, "FLOW", format, ##args)
#define INFO_LOG(format, args...) REALLOG(LL_NORMAL, "INFO", format, ##args)
#define DEBUG_LOG(format, args...) REALLOG(LL_DEBUG, "DEBUG", format, ##args)



